/*
package com.aaa.come.controller;


import com.aaa.come.entity.Outorder;
import com.aaa.come.entity.Picktask;
import com.aaa.come.service.PicktaskService;
import com.aaa.vo.R;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.*;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

*/
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author aaa
 * @since 2020-11-24
 *//*

@RestController
@RequestMapping("/come/picktask")
@Api(description = "拣货任务")
public class PicktaskController2 {

    @Autowired
    private PicktaskService picktaskService;


    @PostMapping("findPagePicktask/{page}/{size}")
    @ApiOperation(value = "拣货任务条件分页查询")
    public R findPagePicktask(@ApiParam("页数") @PathVariable Integer page,
                              @ApiParam("一页几条数据")@PathVariable Integer size,
                              @ApiParam("传入查询条件")@RequestBody Picktask picktask){
        Page<Picktask> pageinfo=picktaskService.findPagePicktaskService(page,size,picktask);
        return R.ok().data("picktask",pageinfo);
    }


    @DeleteMapping("deletePicktask/{id}")
    @ApiOperation(value = "还原拣货任务（删除任务）")
    public R deletePicktask(@ApiParam("需要删除的Id") @PathVariable Integer id){
        if (picktaskService.deletePicktask(id)){//删除
            return R.ok().message("还原成功");
        }else {
            return R.error().message("还原失败");
        }
    }
}

*/
